package ua.soso.service;

import ua.soso.service.bean.FileBean;
import ua.soso.service.bean.FileCategoryBean;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;

/**
 * Created by Babka Aleksey
 * Date: 03.05.12
 */
public interface FileService {
    List<FileBean> getAllFiles(long userId);

    List<FileBean> getUserFiles(long userId);

    void getFile(String fileId, OutputStream stream) throws IOException;

    void saveFile(String description, long categoryId, long userId, String fileName, boolean isPublic, InputStream stream) throws IOException;

    List<FileCategoryBean> getCategories();
}
